package edu.ustb.test.web;

public class Main {
		
	public static void main(String[] args) {
		
		String msg = "大家好:)，<script>，被就业，敏感，网络课没感觉，因为看不见大伙儿";
		
		Request request = new Request();
		request.setRequestStr(msg);
		Response response = new Response();
		response.setResponseStr("response");
		
		FilterChain filterChain = new FilterChain();
		filterChain.addFilter(new HTMLFilter())
			.addFilter(new SensitiveFilter());
		
		 filterChain.doFilter(request, response, filterChain);
		 System.out.println("request = "+request.getRequestStr());
		 System.out.println("response = "+response.getResponseStr());
	}
	
	
}
